package thinkingJava.chapter05;

import static util.Print.*;

import java.util.Arrays;
import java.util.Random;
public class ArrayClassObj {
	public static void main(String[] args) {
		Random rand = new Random(47);
		Integer[] a = new Integer[rand.nextInt(20)];
		print("lengof a : " + a.length);
		print(Arrays.toString(a));
		for (int i = 0; i < a.length; i ++) {
			a[i] = rand.nextInt(500);
		}
		print(Arrays.toString(a));
	}
}
